.tools-and-panels {
  height: 100%;
  .tool-btns {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 1;
    transition: all cubic-bezier(0.68, -0.55, 0.27, 1.55) .3s;
  }
  .tool-panel {
    position: absolute;
    left: 90px;
    top: 20px;
    z-index: 1;
  }
}

.panel-btn {
  width: 60px;
  margin-top: 10px;
  padding: 6px 2px;
  color: rgba(255, 255, 255, 0.95);
  background: #2A2E39;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out 0s;
  user-select: none;
  box-shadow: 0 0 4px #00000040;
  span {
    margin-top: 1px;
    font-size: 20px;
  }
  .panel-btn-name {
    display: block;
    word-break: break-all;
    color: rgba(255, 255, 255, 0.8);
  }
  &:hover {
    color: white;
    background: var(--btn-bg-hover);
  }
  &.active {
    color: white;
    background-color: var(--semi-color-primary);
    .panel-btn-name {
      color: white;
    }
  }
}

.home-panel {
  background: var(--semi-color-bg-1);
  border-radius: 6px;
  width: 400px;
  max-height: calc(100vh - 200px);
  padding: 12px;
  transition: all ease-in-out .2s;
  animation: test 200ms ease;
  box-shadow: 0 0 4px #00000040;
  &.show {
    display: grid;
    grid-template-rows: 40px 1fr;
  }
  &.hide {
    display: none;
  }
  .home-panel-header {
    display: flex;
    justify-content: space-between;
    .home-panel-title {
      font-size: 16px;
      font-weight: bold;
      color: var(--semi-color-text-0);
    }
    .home-panel-closebtn {
      cursor: pointer;
      color: var(--semi-color-tertiary);
      transition: all ease .3s;
      &:hover {
        color: var(--semi-color-tertiary-hover);
      }
    }
  }
  .home-panel-content {
    height: 100%;
    overflow: hidden;
  }
}

@keyframes test {
  0% {
    transform: translateY(5px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
